package com.baizhi.jishi.dao;

import com.baizhi.jishi.entity.Department;
import com.baizhi.jishi.entity.MyTree;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {
    List<Department> showPage(@Param("page") int page,@Param("limit") int limit,@Param("name") String name);

    int getCount(@Param("name") String name);

    int adddepartment(Department department);

    int deleteDepartment(int id);

    Department selectOne(int id);

    int updateDepartment(Department department);

    int deleteSome(int[] ids);

    List<MyTree> showAll();
}
